package com.xydtech.ecard.merchant.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 电子名片个人网格区域信息对象 ecard_person_area
 *
 * @author yuzhiguo
 * @date 2024-09-14 上午10:25
 */
public class EcardPersonArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 网格名称 */
    @Excel(name = "网格名称")
    private String areaName;

    /** 网格简称 */
    @Excel(name = "网格简称")
    private String areaAbbreviation;

    /** 网格照片 */
    private String areaPic;

    /** 网格位置坐标 */
    @Excel(name = "网格位置坐标")
    private String areaCoordinate;

    /** 网格地址 */
    @Excel(name = "网格地址")
    private String areaAddress;

    /** 网格户数 */
    @Excel(name = "网格户数")
    private Integer areaHouseholds;

    /** 网格人口 */
    @Excel(name = "网格人口")
    private Integer areaPopulation;

    /** 联系人姓名 */
    @Excel(name = "联系人姓名")
    private String areaContacts;

    /** 联系人电话 */
    @Excel(name = "联系人电话")
    private String areaPhone;

    /** 创建人注册ID */
    private Long creatorId;

    /** 管户人id */
    private Long managementPersonnelId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 创建人机构id */
    private Long deptId;

    /** 状态0停用,1启用 */
    private Integer state;

    /** 状态0停用,1启用 */
    @Excel(name = "状态")
    private String stateName;

    /** 客户经理 */
    @Excel(name = "客户经理")
    private String userName;

    /** 机构名称 */
    @Excel(name = "机构名称")
    private String deptName;

    /** 字典机构查询条件 */
    private Long dictDeptId;

    /**
     * 用户编号
     */
    private Long userId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAreaName(String areaName)
    {
        this.areaName = areaName;
    }

    public String getAreaName()
    {
        return areaName;
    }
    public void setAreaAbbreviation(String areaAbbreviation)
    {
        this.areaAbbreviation = areaAbbreviation;
    }

    public String getAreaAbbreviation()
    {
        return areaAbbreviation;
    }
    public void setAreaPic(String areaPic)
    {
        this.areaPic = areaPic;
    }

    public String getAreaPic()
    {
        return areaPic;
    }
    public void setAreaCoordinate(String areaCoordinate)
    {
        this.areaCoordinate = areaCoordinate;
    }

    public String getAreaCoordinate()
    {
        return areaCoordinate;
    }
    public void setAreaAddress(String areaAddress)
    {
        this.areaAddress = areaAddress;
    }

    public String getAreaAddress()
    {
        return areaAddress;
    }
    public void setAreaHouseholds(Integer areaHouseholds)
    {
        this.areaHouseholds = areaHouseholds;
    }

    public Integer getAreaHouseholds()
    {
        return areaHouseholds;
    }
    public void setAreaPopulation(Integer areaPopulation)
    {
        this.areaPopulation = areaPopulation;
    }

    public Integer getAreaPopulation()
    {
        return areaPopulation;
    }
    public void setAreaContacts(String areaContacts)
    {
        this.areaContacts = areaContacts;
    }

    public String getAreaContacts()
    {
        return areaContacts;
    }
    public void setAreaPhone(String areaPhone)
    {
        this.areaPhone = areaPhone;
    }

    public String getAreaPhone()
    {
        return areaPhone;
    }
    public void setCreatorId(Long creatorId)
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId()
    {
        return creatorId;
    }
    public void setManagementPersonnelId(Long managementPersonnelId)
    {
        this.managementPersonnelId = managementPersonnelId;
    }

    public Long getManagementPersonnelId()
    {
        return managementPersonnelId;
    }
    public void setCreationTime(Date creationTime)
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime()
    {
        return creationTime;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Long getDictDeptId() {
        return dictDeptId;
    }

    public void setDictDeptId(Long dictDeptId) {
        this.dictDeptId = dictDeptId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("areaName", getAreaName())
                .append("areaAbbreviation", getAreaAbbreviation())
                .append("areaPic", getAreaPic())
                .append("areaCoordinate", getAreaCoordinate())
                .append("areaAddress", getAreaAddress())
                .append("areaHouseholds", getAreaHouseholds())
                .append("areaPopulation", getAreaPopulation())
                .append("areaContacts", getAreaContacts())
                .append("areaPhone", getAreaPhone())
                .append("creatorId", getCreatorId())
                .append("managementPersonnelId", getManagementPersonnelId())
                .append("creationTime", getCreationTime())
                .append("deptId", getDeptId())
                .append("state", getState())
                .append("remark", getRemark())
                .append("stateName", getStateName())
                .append("userName", getUserName())
                .append("deptName", getDeptName())
                .append("dictDeptId", getDictDeptId())
                .append("userId", getUserId())
                .toString();
    }
}
